home *** CD-ROM | disk | FTP | other *** search
- BINARY <--> ASCII UTILITIES
-
- Do you ever need to send a binary file to a computer that can only accept
- seven-bit characters? For example, you may want to upload a spreadsheet file
- to MCI so that it can be downloaded to one or more other locations. If so,
- here are a pair of utilities that will let you do that.
-
- TO-ASC will transform any file (executable, spreadsheet, database, text, etc.)
- from eight-bit characters to seven bit characters. This is done by taking
- groups of 3 eight-bit characters (24 bits total) and separating them into 4
- six-bit characters. Each of these is then offset by 63 so that each of the 4
- characters is a printable character (this makes all of the characters seven-
- bits in length except for zero which then becomes 63 or an ASCII '?'). These
- 4 characters are then written to a file as 4 eight-bit characters with the
- high order bit always equal to zero. Thus the file only contains seven-bit
- characters.
-
- TO-ASC can convert any size file. As the conversion takes place, the ASCII
- characters appear on the screen, at 60 characters per line. The ASCII charac-
- ters are also sent to a file but without any line delimiters.
-
- A companion program, FROM-ASC, is needed to transform the ASCII file back into
- the original form. As that transformation proceeds, the ASCII characters are
- again printed to the screen, 60 characters per line, while the output file is
- being written. The only purpose in displaying the ASCII characters is to
- assure the user that the file conversion process is active.
-
- USAGE
-
- The command line format for each program is:
-
- TO-ASC [<input-file>] [<output-file>]
-
- FROM-ASC [<input-file>] [<output-file>]
-
- The parameters in brackets ([]) are optional. If both parameters are omitted,
- the program(s) will query the user for the file descriptors. If the first
- parameter is present and the second is absent, the program(s) will query for
- an output file descriptor. The file descriptors may contain a path name as
- well as the file name as long as the total descriptor does not exceed 60
- characters.
-
- COMMENTS
-
- You may say, "The output file will be larger than the input file." That is
- true but the size increase is only 33 percent. This is a small price to pay
- for being able to upload the file to a service that can only accept seven-bit
- characters.
-
- Another objection might be, "What if the ultimate destination for the file
- does not have FROM-ASC to convert the file back to its original form?" This
- objection is taken care of by including in the package the file, FROM-ASC.HEX.
- This is a DEBUG script file of FROM-ASC.EXE. This file consists of nothing
- but ASCII characters. It may be sent through an intermediary that can only
- accept ASCII, to your ultimate destination. Once received at the ultimate
- destination, the user may use the following DEBUG command:
-
- DEBUG <FROM-ASC.HEX
-
- This will take the script file into DEBUG and create the file FROM-ASC.COM.
- The file created will actually be FROM-ASC.EXE but since DEBUG can't write to
- a file with an EXE extension, the file is named FROM-ASC.COM. It actually can
- be run with that name because DOS is smart enough to recognize it as an EXE
- file and will load and run it as such. However, if the end user wants to be
- pure about it, he may rename the file giving it its true EXE extension.
-
-
- REGISTRATION
-
- The TO - FROM utilities are a product of Castle Oaks Computer Services. If
- you use the product, you should send in the registration fee of $10.00 to:
-
- Castle Oaks Computer Services
- Post Office Box 36082
- Indianapolis, IN 46236-0082
-
- Registered users will receive the latest version of the TO - FROM utilities
- and a detailed description of other products that are available from Castle
- Oaks.
-
- Other products available from Castle Oaks are:
-
- CRYPT-O-SEARCH (TM) - a program to create word search puzzles. Includes
- the option of encrypting the word list. Registration
- fee is $10.00.
-
- WORDFIND - - - - - - a system to assist in solving word puzzles such as
- crosswords, acrostics, cryptograms, etc. Registration
- fee is $15.00.
-
- UNAGRAM - - - - - - - a program to unscramble anagrams. Provided free with
- WORDFIND.
-
- TRAC & TRAP - - - - - A pseudo computer and its assembler. Provides an
- introduction to machine language and assembly
- language on a simplified computer. Registration fee
- is $10.00.
-
- Other products are under development.
-
-
-
-
-
-